<HTML>
<HEAD>
<TITLE>DefaultProjectName - SetText</TITLE>
<script type="text/javascript">
  var relPathToCommmon = "../../common/";
  var relPathToHelpDir = "../../common/help/";
</script>
<script type="text/javascript" src="../../common/jsdyn.js" language="JavaScript"></script>
<script type="text/javascript" src="../../common/js.js" language="JavaScript"></script>
<script type="text/javascript" src="leftmenu.js" language="JavaScript"></script>
<script type="text/javascript">
  var toSearchPage     = "_search','../../search";
  Body1();
</script>
<div class="headerPage">SetText</div>
<div class="path"><a href="#" OnMouseOver="link('','../../index',this)" class="pathLink">OOXlib</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_dir','include0',this)" class="pathLink">include</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_class','CGraphicsContext4032',this)" class="pathLink">CGraphicsContext</A><img src="../../common/path-arrow.gif" class="path-arrow"><span class="pathNonLink">SetText</span></div>
<script type="text/javascript">
 Body2();
 BodyLeftMenuStart();
WriteLeftMenu("","","","");
 BodyLeftMenuEnd();
 Body3();
</script>
<span class="tabInActive"><a href="#" OnMouseOver="linkTab('_member','SetText4271072105','_description',this)" class="tabLinkInActive">Description</a></span>
<span class="tabActive"><a href="#" OnMouseOver="linkTab('_member','SetText4271072105','_source',this)" class="tabLinkActive">Source</a></span>
<span class="tabInActiveGrayout"><span class="tabLinkGrayout">Call Graph</span></span>
<script type="text/javascript">
 Body4();
</script>
<div class="contentAirTop"></div>
<div class="paragraph2NoTopPadding">Start Line: 123</div>
<pre class="codeExamples">
void <a href="#" onMouseOver="link('_member','SetText4271072105',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>void&nbsp;&nbsp;SetText&nbsp;&nbsp;(const ::std::string & Text)',CAPTION,'<strong>Brief description</strong><BR>Sets the text.');" onMouseOut="return nd();">OOXlib::CGraphicsContext::SetText</a>(const::std::string &amp;Text)
                                                    {
    if(Text.empty()) {
        <a href="#" onMouseOver="link('_member','m_Text1078138878',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< ::std::string >&nbsp;&nbsp;m_Text ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Text</a>.clear();
        <a href="#" onMouseOver="link('_member','m_Text1078138878',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< ::std::string >&nbsp;&nbsp;m_Text ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Text</a>.push_back("\0");
    }
    size_t startPos = 0;
    size_t sepPos = 0;
    <a href="#" onMouseOver="link('_member','m_Text1078138878',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< ::std::string >&nbsp;&nbsp;m_Text ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Text</a>.clear();
    while(::std::string::npos != (sepPos = Text.find('\n', startPos))) {
        <a href="#" onMouseOver="link('_member','m_Text1078138878',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< ::std::string >&nbsp;&nbsp;m_Text ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Text</a>.push_back(Text.substr(startPos, sepPos));
        startPos = sepPos + 1;
    }
    <a href="#" onMouseOver="link('_member','m_Text1078138878',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::std::vector< ::std::string >&nbsp;&nbsp;m_Text ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Text</a>.push_back(Text.substr(startPos));
}
</pre><div class="contentAirBottom"></div>
<script type="text/javascript">
 Body5();
Statistics("","","","","");
 Body6();
SetPageTab('_member','_source');
</script>
